package com.muyun.data.modeler.sysadmin.domain.model.repository;

import com.muyun.data.modeler.infrastructure.general.specs.CommonRepository;
import com.muyun.data.modeler.sysadmin.domain.model.entity.User;

/**
 * 用户资源库
 * 
 * @author muyun12
 * @date 2020-12-20 17:49:28
 * @since 0.1.0
 */
public interface UserRepository extends CommonRepository<User, Long> {

    /**
     * 根据用户名查询用户是否存在
     *
     * @param username 用户名
     * @return
     */
    boolean existsByUsername(String username);

}
